//itinerary class implementation
#include "itinerary.h"

//default constructor
itinerary::itinerary() :
departureCity(""),
arrivalCity("")
{};

//constructor
itinerary::itinerary(vector<flight> f)
{
	if(f.empty()){	
		departureCity = "";
		arrivalCity = "";
	}
	else{
		flights = f;
		departureCity = f.front().getDepartureCity();
		arrivalCity = f.back().getArrivalCity();
	}
};

//destructor
itinerary::~itinerary(){};

vector<flight> itinerary::getFlights() const
{
	return flights;
};
